//
//  UMDFile.h
//  UMDReader
//
//  Created by 张 霄鹤 on 10-1-6.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "Chapter.h"
#import "ChapterList.h"

@interface UMDFile : NSObject {
	NSString *fileName;
	NSInteger additionalCheck;
	NSString *author;
	NSMutableArray *chapterOffset;
	ChapterList *chapters;
	NSInteger cid;
	NSInteger contentLength;
	NSString *day;
	NSString *encoding;
	NSString *gender;
	NSString *month;
	short pgkSeed;
	NSDate *publishDate;
	NSString *publisher;
	NSString *text;
	NSString *title;
	NSString *vendor;
	NSString *year;
	NSMutableArray *zippedSeg;
}

@property(nonatomic, retain) NSString *author;
@property(nonatomic, retain) NSString *gender;
@property(nonatomic, retain) NSString *publisher;
@property(nonatomic, retain) NSString *title;
@property(nonatomic, retain) NSString *vendor;
@property(nonatomic, retain) NSString *year;
@property(nonatomic, retain) NSString *month;
@property(nonatomic, retain) NSString *day;
@property(nonatomic, retain) NSString *encoding;
@property(nonatomic, retain) NSString *fileName;

- (id)init;

- (Chapter *)appendChapter;

- (BOOL)canSave;

- (void)initialize;

- (void)prepare;

- (void)read:(NSInputStream *)ins;

@end
